package com.bicycle.rentalsystem.utils;

/**
 * @author Third uncle
 * @date 2022/11/25 - 13:42
 */
public class WebUtil {
    public static int parseInt(String strInt,int defaultValue) {
        if(strInt==null||strInt==""){
            return defaultValue;
        }
        try {
            return Integer.parseInt(strInt);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        return defaultValue;
    }
}
